package com.metaverse.backend.domain;

import com.metaverse.backend.annotations.ExcelTitle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * 评论数据
 */
@Data
@Entity
@Table(indexes = {
        @Index(columnList = "roomId"),
        @Index(columnList = "msg_type"),
})
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ExcelTitle("评论数据")
@ApiModel("评论数据")
public class LiveComment extends BaseEntity{

     @ApiModelProperty("房间ID")
     private String roomId;//":1649068964, //  房间ID
     @ApiModelProperty("局号")
     private String roundId;


     @ApiModelProperty("日志类型")
     private String msg_type;//":1649068964, //  日志类型

     @ApiModelProperty("类型id")
     private String msg_id;//": "123456781",  // string类型id
     @ApiModelProperty("评论用户的加密openid, 当前其实没有加密")
     private String sec_openid;//":"xxxx",    // 评论用户的加密openid, 当前其实没有加密
     @ApiModelProperty("评论内容")
     private String content;//":"xxxx",       // 评论内容
     @ApiModelProperty("评论用户头像")
     private String avatar_url;//":"xxx",     // 评论用户头像
     @ApiModelProperty("评论用户昵称(不加密)")
     private String nickname;//":"xxxx",      // 评论用户昵称(不加密)
     @ApiModelProperty("评论毫秒级时间戳")
     private Long timestamp;//":1649068964, // 评论毫秒级时间戳

     @ApiModelProperty("发生时间")
     private LocalDateTime happenTime;
}
